home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java 1996 August
/
Java - Summer 1996.iso
/
kaffe-0.2
/
kaffe
/
gc.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-11
|
817b
|
37 lines
/*
* gc.h
* The garbage collector.
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
*/
#ifndef __gc_h
#define __gc_h
#define GC_FREE 0
#define GC_MARK 1
#define GC_UNMARK 2
#define GC_GARBAGE 3
struct _object;
typedef struct _gcRef {
int flags; /* State of this entry */
int idx; /* This entry index */
struct _object* obj; /* Used - the object */
struct _gcRef* next; /* Free - the next free */
} gcRef;
#define GCREFTABLESZ 1024
#define GCREFMAX 1024
void add_object(struct _object*, bool);
void invokeGarbageCollector(void);
#endif